package com.example.demo.dao;

import com.example.demo.pojo.Staff;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface staffMapper {
    public List<Staff> selectAllStaffs();
    public Staff selectStaffByusername(String username);
    public Staff selectStaffById(int id);
    public void addStaff(Staff staff);
    public void updateStaff(Staff staff);
    public void deleteStaff(int id);
    public int staff_num();
}

